package cn.iocoder.yudao.module.distm.dal.mysql.schedule;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.distm.controller.app.schedulerecord.vo.AppDeliveryPageReqVO;
import cn.iocoder.yudao.module.distm.dal.dataobject.schedule.ScheduleRecordHistoryDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 配送管理-调度生产记录 Mapper
 *
 * @author yisl
 */
@Mapper
public interface ScheduleRecordHistoryMapper extends BaseMapperX<ScheduleRecordHistoryDO> {

    default PageResult<ScheduleRecordHistoryDO> appHistorySelectPage(AppDeliveryPageReqVO reqVO) {
        LambdaQueryWrapperX<ScheduleRecordHistoryDO> queryWrapperX = new LambdaQueryWrapperX<ScheduleRecordHistoryDO>()
                .likeIfPresent(ScheduleRecordHistoryDO::getFlightCrew, reqVO.getUserId());
        return selectPage(reqVO, queryWrapperX);
    }

}